package com.rwdesign.springboot.Waimai.service;


import com.rwdesign.springboot.Waimai.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author rystart
 * @create 2022-01-28 14:04
 */
public interface OrderService {


    /**
     * @Description: 查询所有订单
     * @Param:
     * @return:
     * @Author: cdp
     * @Date: 2022/1/28
     */
    List<Order> selectAllOrders(String orderStatus, Integer userId);

    /**
     * @return
     * @Author chendanping
     * @Description //TODO 查詢商户訂單
     * @Date 21:02 2022/3/2
     * @Param
     **/
    List<Order> selectShoperOrdersById(@Param("orderStatus") String orderStatus, @Param("shopId") Integer shopId);

    /**
     * @return
     * @Author chendanping
     * @Description //TODO 創建訂單
     * @Date 21:05 2022/3/2
     * @Param
     **/
    int insertOrder(Order record);

    /**
     * @return
     * @Author chendanping
     * @Description //TODO 结束訂單
     * @Date 21:10 2022/3/2
     * @Param
     **/
    int updateOrderEndTimeById(String orderStatus,String orderEndTime, Integer orderId);


}
